
<?php $this->load->view('/admin/adminview_head');?>


<div id="content">

	<p>
	<?php 
		// nao funciona
		//$this->lang->line('public.text.main');
		echo $text_insert;
	?>
	</p>
	
	</br>
	
	<div id="formArea">
	
		<?php 
		echo form_open('Admin/insert',array('id' => 'insertForm','class' => 'classForm'));
		
		// TYPE
		echo form_label('type:');
		$options = array(
			'school'	=> 'school',
			'hotel'		=> 'hotel',
		);
		echo form_dropdown('userType',$options,'school'); // see later how to put the previous value here.
		
		// USER
		echo form_label('User:');
		$nameData = array(
			'name'		=> 'user',
			'value'		=> set_value('user'), // set the previous value if they exists
			// ... we can set other properties ... see form helper api for more examples
			//'id'		=> 'id',
			//'maxlength' => '100',
		    //'size'      => '50',
		);
		echo form_input($nameData);
		
		// MAIL
		echo form_label('Mail:');
		$mailData = array(
			'name'				=> 'mail',
			'value'				=> set_value('mail'),
		);
		echo form_input($mailData);
		
		// FIRST NAME
		echo form_label('First Name:');
		$firstNameData = array(
				'name'			=> 'first_name',
				'value'			=> set_value('first_name'),
		);
		echo form_input($firstNameData);
		
		// LAST NAME
		echo form_label('Last Name:');
		$lastNameData = array(
				'name'			=> 'last_name',
				'value'			=> set_value('last_name'),
		);
		echo form_input($lastNameData);
		
		// PASS
		echo form_label('Pass:');
		$passData = array(
				'name'			=> 'pass',
		);
		echo form_password($passData);
		
		
		// RETYPE PASS 
		echo form_label('Pass again:');
		$passChkData = array(
				'name'			=> 'pass_chk',
		);
		echo form_password($passChkData);
		
		echo form_submit('submit','ok');
		form_close();
		echo validation_errors()
		?>
	
	</div>
	
	

</div>


<?php $this->load->view('/admin/adminview_footer'); ?>
